const getModulesFiles = (modulesFiles: any) => {

  const modules = Object.keys(modulesFiles).reduce((modules: any, modulePath: string) => {
    const value = modulesFiles[modulePath]
    modules = Object.assign(modules, value.default)
    return modules
  }, {})
  return modules
}

export default getModulesFiles